package com.jeesite.modules.kj.api.vo.response;

import com.jeesite.modules.kj.api.vo.response.base.BaseResponseVo;
import com.jeesite.modules.kj.entity.KjActivityJob;
import com.jeesite.modules.kj.entity.KjMemberJob;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class MemberJobResponseVo extends BaseResponseVo<KjMemberJob> {

    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "岗位名称")
    private String jobName;

    @ApiModelProperty(value = "岗位ID")
    private String jobId;

    @ApiModelProperty(value = "审核状态 0未审核，1通过 2未通过")
    private String approveStatus;



    @ApiModelProperty(value = "用户头像")
    private String headimg;

    @ApiModelProperty(value = "用户ID")
    private String memberId;

    @ApiModelProperty(value = "用户名")
    private String memberName;

    @ApiModelProperty(value = "申请理由")
    private String apply;

    @ApiModelProperty(value = "报名时间")
    private Date createDate;

    @ApiModelProperty(value = "审核备注")
    private String remarks;

    public MemberJobResponseVo() {
    }

    public MemberJobResponseVo(KjMemberJob kjMemberJob) {
        setEntity(kjMemberJob);
    }

    @Override
    public void setEntity(KjMemberJob entity) {
        BeanUtils.copyProperties(entity, this);
        this.memberName = entity.getKjMember().getName();
        this.headimg = entity.getKjMember().getHeadimg();
        this.memberId = entity.getKjMember().getId();

    }
}
